package com.example.win.android_banduyujia.database;

import android.database.sqlite.SQLiteDatabase;

/**
 * Created by Win on 2015/9/4.
 */
public class Paydatabase extends BaseDatabaseHelper {
    public static final String  TABLE_NAME_PAY = "tb_my_name";

    private static Paydatabase  mInstance;

    protected Paydatabase(String tableName) {
        super(tableName);
    }

    public static Paydatabase getInstance(){
        if(mInstance == null){
            mInstance = new Paydatabase(TABLE_NAME_PAY);
        }
        return mInstance;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

       // db.execSQL(String.format(SQL_CREATE_PAY_TABLE, TABLE_NAME_PAY));
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) {

        db.execSQL(String.format(DBHelper.SQL_ORDER_FORMAT, TABLE_NAME_PAY));
        onCreate(db);
    }
}
